package com.bw.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.house.dao.HouseCommunityDao;
import com.bw.house.entity.HouseCommunityEntity;
import com.bw.house.service.HouseCommunityService;


@Service("houseCommunityService")
public class HouseCommunityServiceImpl extends ServiceImpl<HouseCommunityDao, HouseCommunityEntity> implements HouseCommunityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseCommunityEntity> page = this.page(
                new Query<HouseCommunityEntity>().getPage(params),
                new QueryWrapper<HouseCommunityEntity>()
        );

        return new PageUtils(page);
    }

}